<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Employee Record 290</title>

	<link
		href="#{facesContext.externalContext.requestContextPath}/resources/css/site/style.css"
		rel="stylesheet" type="text/css" />
	<link
		href="#{facesContext.externalContext.requestContextPath}/resources/css/site/navi.css"
		rel="stylesheet" type="text/css" />

	<script type="text/javascript"
		src="#{facesContext.externalContext.requestContextPath}/resources/css/site/js/jquery-1.8.3.min.js"></script>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script type="text/javascript">
		$(function() {
			$(".box .h_title").not(this).next("ul").hide("normal");
			$(".box .h_title").not(this).next("#records").show("normal");
			$(".box").children(".h_title").click(function() {
				$(this).next("ul").slideToggle();
			});
			//$("#hiddenForm:hiddenButton").css("display", "none);
		});
	</script>

	<h:outputScript library="javascript" name="jscodes.js" />

</h:head>

<h:body>
	<f:view contentType="text/html; charset=UTF-8" encoding="UTF-8">
		<div class="wrap">
			<div id="header">
				<ui:include src="../templates/top.xhtml"></ui:include>
			</div>

			<div id="content">
				<div id="sidebar">
					<ui:include src="../templates/left.xhtml"></ui:include>
				</div>
				<div id="main">
					<div class="clear"></div>
					<h:form id="form">
						<p:growl id="growl" showDetail="true" life="5000" />
						<div class="full_w">
							<h:panelGrid columns="2" cellpadding="5">
								<f:facet name="footer">
								&nbsp; &nbsp; Process Id :
							<h:selectOneMenu value="#{rec290MB.selectedProcessId}">
										<f:selectItem itemLabel="Select One" itemValue="-1" />
										<f:selectItems value="#{rec290MB.processList}" />
									</h:selectOneMenu>
							&nbsp; &nbsp; &nbsp;
							<p:commandButton action="#{rec290MB.getSelectedProcessRecords}"
										id="reloadSpecificData" value="Reload Specific Data"
										update="rec290Table growl" ajax="true"></p:commandButton>
								</f:facet>
							</h:panelGrid>
						</div>
					<div class="full_w">
						<h1>Employee Record 290</h1>
						<p:dataTable id="rec290Table" value="#{rec290MB.records}"
							var="record" style="width:700px;"  lazy="true"
							emptyMessage="#{bundle.noRecords}" paginator="true" rows="10"
							paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
							rowsPerPageTemplate="5,10,15,20,25" scrollable="true"
								scrollWidth="700" scrollHeight="200" rowIndexVar="rowIndex">
							<p:column>
								<f:facet name="header">
									<h:outputText value="id" />
								</f:facet>

								<h:outputText value="#{id}" />
							</p:column>

							<p:column>
								<f:facet name="header">
									<h:outputText value="filler1" />
								</f:facet>

								<h:outputText value="#{record.filler1}" />
							</p:column>

							<p:column>
								<f:facet name="header">
									<h:outputText value="TCI Id" />
								</f:facet>

								<h:outputText value="#{record.tciId}" />
							</p:column>

							<p:column>
								<f:facet name="header">
									<h:outputText value="ytdwages" />
								</f:facet>

								<h:outputText value="#{record.ytdwages}" />
							</p:column>
						</p:dataTable>
					</div>
					</h:form>
				</div>
				<div class="clear"></div>
			</div>

			<div id="footer">
				<ui:include src="../templates/footer.xhtml"></ui:include>
			</div>
		</div>

	</f:view>
</h:body>
</html>